import request from "@/utils/request";
import type { ResultGood, SearchParams } from "@/type/SearchType";
import type { ResponseType } from "@/type/ResponseType";

enum Enum {
   searchGoodListAPI = "/goods/list"
}

/**
 * @description 商品搜索的接口
 * */
export const searchGoodListAPI = (params: SearchParams) => request.get<ResultGood, ResponseType<ResultGood>>(Enum.searchGoodListAPI, { params });
